package com.woniu.liuzhougov.itemAndTask.service.impl;

import com.woniu.liuzhougov.itemAndTask.dao.CheckStatusMapper;
import com.woniu.liuzhougov.itemAndTask.pojo.CheckStatus;
import com.woniu.liuzhougov.itemAndTask.service.ItemStatusService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional(rollbackFor = Exception.class)
@Service
public class ItemStatusServiceImpl implements ItemStatusService {

    @Autowired
    private CheckStatusMapper checkStatusMapper;


    /**
     * 查询所有 事项状态
     * @return
     */
    @Override
    public List<CheckStatus> allStatus() {
        return checkStatusMapper.selectAllStatus();
    }
}
